#include "ray.h"


namespace rt
{

Ray::Ray(Color &a_color,
         const Point &a_origin,
         const Vector &a_direction)
    : m_color(a_color)
    , m_origin(a_origin)
    , m_direction(a_direction)
{
}

Point& Ray::getOrigin()
{
    return m_origin;
}

Vector& Ray::getDirection()
{
    return m_direction;
}

void Ray::normalize()
{
    this->m_direction.normalize();
}

}
